package com.ruoyi.algorithm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

/**
 * @TableName user_table_struct
 */
@TableName(value = "user_table_struct")
@Setter
@Getter
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class UserTableStruct implements Serializable {

    /**
     * 部分参数构造器
     *
     * @param userId        用户名
     * @param tableStructId ts表id
     * @param seq           排序
     * @param display       是否显示
     */
    public UserTableStruct(Long userId, Long tableStructId, Integer seq, Boolean display) {
        this.userId = userId;
        this.tableStructId = tableStructId;
        this.seq = seq;
        this.display = display;
    }

    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户表ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 表结构ID
     */
    @TableField(value = "table_struct_id")
    private Long tableStructId;

    /**
     * 顺序
     */
    @TableField(value = "seq")
    private Integer seq;

    /**
     * 是否显示(true显示；false不显示)
     */
    @TableField(value = "display")
    private Boolean display;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
